package com.szrt.javaweb.ioc.demo02.entity;

public class Car {
	
	
	
	
	public Car() {
		
		System.out.println("调用Car的构造方法造...." );
		
	}


	/**
	 * 牌子   BMW
	 */
	private String  brand;
	
	/**
	 * 价格
	 */
	private Integer price;
	


	public String getBrand() {
		return brand;
	}


	public void setBrand(String brand) {
		System.out.println("调用Car的设置品牌setBrand方法..." + brand);
		this.brand = brand;
	}


	//setPrice2 去掉set  Price2  首字母小写  price
	public void setPrice2(Integer price) {
		System.out.println("调用Car的设置价格setPrice方法..." + price);
		this.price = price;
	}
	
	

}
